package com.autonavi.yunda.yunji.core.utils.datahub;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

/**
 * datahub filterProperties翻译sql工具类
 * @author yutao
 */
public class PropertiesTranslateUtils {

    public static String translanteProperties (Map<String, Object> properties) {
        Condition condition = (new JSONObject(properties).toJavaObject(Condition.class));
        return condition.translateToSql();
    }
}


